package element;

import java.awt.*;

/**
 * @author 邓哈哈
 * 2023/2/22 15:31
 * Function:
 * Version 1.0
 */

public class GoldSmaller extends Gold {
    /**
     * 初始化
     */
    public GoldSmaller() {
        //初始化图片
        this.img = Toolkit.getDefaultToolkit().getImage("src/main/imgs/gold0.gif");
        //初始化坐标
        this.x = (int) (Math.random() * (700 - 15) + 15);
        this.y = (int) (Math.random() * (850 - 300) + 300);
        //初始化尺寸
        this.width = 36;
        this.height = 36;
        //初始化存活状态(默认为未存活)
        this.alive = false;
        //初始化质量
        this.quality = 0;
        //初始化积分
        this.count = 6;
        //初始化类型
        this.type = 1;
    }
}
